package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 教育系统配置表
 *
 * @author dlb
 * @since 2023-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_system_config")
@Schema(name = "EduSystemConfig", title = "教育系统配置表", description = "教育系统配置表实体类")
public class EduSystemConfig extends Model<EduSystemConfig> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "systemCofingId", title = "教育系统配置表主键")
    @TableId(value = "system_cofing_id", type = IdType.ASSIGN_ID)
    private Long systemCofingId;

    @Schema(name = "areaCode", title = "所属统筹区")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "eduConfigKey", title = "参数标识")
    @TableField(value = "edu_config_key")
    private String eduConfigKey;

    @Schema(name = "eduConfigKey", title = "参数标识")
    @TableField(exist = false)
    private String eduConfigKeyName;
    @Schema(name = "eduConfigName", title = "参数名称")
    @TableField(value = "edu_config_name")
    private String eduConfigName;

    @Schema(name = "funcCode", title = "功能编号")
    @TableField(value = "func_code")
    private String funcCode;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "CREATE_NAME", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "UPDATE_NAME", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", title = "逻辑删除标志 0 正常 1 删除")
    @TableField(value = "DEL", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.systemCofingId;
    }
}
